home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Programmer's Power Pack
/
Delphi Volume 1.iso
/
e_to_l
/
isamexpt
/
utooldll.int
< prev
next >
Wrap
Text File
|
1996-09-15
|
2KB
|
60 lines
unit Utooldll;
interface
Uses WinTypes;
Procedure Delay(ms : LongInt); far;
Procedure MeldeWindow( U1,S1,S2 : String);
{Message-Window, U1 = Title of Window,
S1 and S2 is Text in Window}
procedure ErrorWindow(s1,s2:String);
{Messagewindow for Errors}
procedure WaitWindow(S1,S2:String);
{Window that will display Wait-Message,
can be called repeatedly to change text in Window,
must be Destroyed by CLOSEWAIT}
procedure CloseWait;
{Closes WAITWINDOW}
Function JaNein(S1,S2:STRING):Boolean; far;
{Asks user the question given in S1+S2,
has buttons YES and NO}
Function Space(SpZahl: Integer): String;
{fills string with SPZAHL Spaces}
Function F(S: String; Len: Byte): String;
{fills string with spaces, until it has Length LEN}
Function LowerCase(Ch: String): String;
{converts String to LOWERCASE}
Function Strip(Var S: String): String;
{removes all spaces from string}
Function RStrip(Var S: String): String;
{removes all Spaces at the end of the string}
Function String_ANSI2OEM(Conv: Boolean; S: String): String;
{converts ANSI strings to OEM-Strings, if CONV is true}
Function String_OEM2ANSI(Conv: Boolean; S: String): String;
{converts OEM-Strings to ANSI-Strings, if CONV is true}
Function Password(Passwort: String): Boolean;
{displays a PASSWORD-Dialog, returns TRUE, if PASSWORD is correctly input}
function StrDez (Str:String):Real;
{converts a string to real}
Function DezStr (Dez:real):String;
{converts a number to a string}
function FormDezStr (wert:real;len,ankm:byte):String;
{converts a number to a string, LEN is length of string, ANKM is decimal places}
Function Intstr (wert : longint):String;
{converts Integer to string}
Function DateStr(Datum:longint):String;
{converts ISAM-Date-LONGINT to STRING}
function StrDate (St:String):longint;
{converst STRING "01.12.1995" to a ISAM-Longint-Date}
Function TimeStr(Zeit:longint):String;
{see DATESTR}
CONST SPRACHE: BYTE = 0; {0 = German, 1 = Englisch)
{set SPRACHE:= 1 in FORMCREATE-Method of your Main-Form and you will
receive all messages in english.
setzen Sie SPRACHE:= 0 in der FORMCREATE-Methode Ihres Haupt-Forms
und Sie erhalten alle Messages in deutsch.}
Implementation